package com.dayu.jdk9gradle;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tom
 */
@SpringBootApplication
public class Jdk9GradleApplication {

	public static void main(String[] args) {
		SpringApplication.run(Jdk9GradleApplication.class, args);
	}


	@RestController
	class HelloJdk9 {
		@GetMapping
		public String hi() {
			return "hello jdk9";
		}
	}
}
